﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Outlook.WorkItems.Extension.Addin.Helpers
{
    sealed public class ConvertImage : System.Windows.Forms.AxHost
    {
        private ConvertImage()
            : base(null)
        {
        }
        public static stdole.IPictureDisp Convert(System.Drawing.Image image)
        {
            return (stdole.IPictureDisp)GetIPictureDispFromPicture(image);
        }

        public static stdole.StdPicture ConvertToStdPicture(System.Drawing.Image image)
        {
            return (stdole.StdPicture)GetIPictureDispFromPicture(image);
        }
    }
}
